#include<stdio.h>
int main()
{
    int arr[100]={4,23,4,7,1,9,24,8,35,32,7,8,45,32,25};
    int n = 15;
    int i,j,temp,min_idex;

    for(i=0;i<=n;i++)//obhojdame
    {
        min_idex = i;//priemame i za minimalniq(parviq)

        for(j=i+1;j<=n;j++)//obhojdame pak
        {
            if(arr[min_idex] > arr[j])//ako parvoto e po malko smqna
            {
                temp = arr[min_idex];
                arr[min_idex] = arr[j];
                arr[j] = temp;
            }
        }
    }
    return 0;
}
